<template>
  <div>
    <nav-top title="我的收藏" />
    <post-item v-for="star of starList" :key="star.id" :postData="star" />
  </div>
</template>

<script>
import NavTop from "../../components/NavTop";
import PostItem from "../../components/PostItem";
export default {
  name: "Star",
  components: {
    NavTop,
    PostItem,
  },
  data() {
    return {
      starList: [],
    };
  },
  mounted() {
    this.getStarList();
  },
  methods: {
    getStarList() {
      this.$axios.get("/user_star").then((res) => {
        this.starList = res.data.data;
      });
    },
  },
};
</script>

<style scoped lang="less">
</style>
